Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / CategoryData Class / FromValues(Object[]) Method
The values that will be used to set the CategoryData.
Example


In This Topic
    FromValues(Object[]) Method
    In This Topic
    Creates a CategoryData from values.
    Syntax
    'Declaration
     
    
    Public Shared Function FromValues( _
       ByVal ParamArray values() As Object _
    ) As CategoryData
    'Usage
     
    
    Dim values() As Object
    Dim value As CategoryData
     
    value = CategoryData.FromValues(values)
    public static CategoryData FromValues( 
       params object[] values
    )

    Parameters

    values
    The values that will be used to set the CategoryData.

    Return Value

    CategoryData that will be used as a Chart.CategoryData
    Remarks
    All the values must be of the same type.
    Example
    lineChart.CategoryData = CategoryData.FromValues ( 2020, 2021, 2022, 2023, 2024);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also